# coding=utf-8
#
# 版权所有 2011 沙发客团队
# 遵循Apache License 2.0协议
#    具体见 http://www.apache.org/licenses/LICENSE-2.0
#
EVT_NOTIFICATION_ID = 10001
ID_LIST_CTRL=300

#
# 消息类型
#
NOTIFICATION_NONE           = -1
NOTIFICATION_UPDATE_MESS    = 0     # 消息通知
NOTIFICATION_UPDATE_LABLE   = 1     # 计数通知
NOTIFICATION_UPDATE_TIME    = 2     # 休眠时间通知
NOTIFICATION_RUSH_TIME      = 3     # 抢沙发间隔时间


DEFAULT_COMMENT_TEMPLATE = u"@*作者* 我第*次数*次抢到您的沙发啦"
DEFAULT_RETWEET_TEMPLATE = u"我第*次数*次 坐到 @*作者* 的沙发啦 *地址*"

#
# 配置文件相关信息
#
CONFIG_FILE              = u"shafa.ini"
CONFIG_SETTING_FILE      = u"setting.ini"
CONFIG_COMMENT_COUNTER   = u"comment_counter"
CONFIG_RETWEET_COUNTER   = u"retweet_counter"
CONFIG_WATCH_LEVEL       = u"watch_level"

SETTING_USER_NAME        = u"user_name"
SETTING_REQUEST_COUNT    = u"request_count"
SETTING_IS_RECORD        = u"is_record"
SETTING_COMMENT_ENABLE   = u"comment_enable"
SETTING_RETWEET_ENABLE   = u"retweet_enable"
SETTING_COMMENT_NUM      = u"comment_num"
SETTING_RETWEET_NUM      = u"retweet_num"
SETTING_WATCH_LEVEL      = u"default_watch_level"

SECTION_NAME_ACCOUNT     = u"账户设置"
SECTION_NAME_SHAFA       = u"沙发设置"
SECTION_NAME_COMMENT     = u"沙发内容模板"
SECTION_NAME_RETWEET     = u"转发内容模板"

WATCH_LEVEL_NONE         = 0
WATCH_LEVEL_ONCE         = 1
WATCH_LEVEL_ALWAYS       = 2

#
# 沙发应用程序的key
#
APP_KEY             = "2474936988"
APP_SECRET          = "1b90e7a1204cc8294ac82a8ce23ced8f"
WEIBO_HOST          = "api.t.sina.com.cn"
USER_NAME           = u""
REQUEST_COUNT       = 18
IS_RECORD           = True
COMMENT_ENABLE      = 1
RETWEET_ENABLE      = 0
COMMENT_NUM         = 0
RETWEET_NUM         = 0
DEFAULT_WATCH_LEVEL = 1
COMMENT_TEMPLATE_LIST    = []
RETWEET_TEMPLATE_LIST    = []

#
# 最短间隔时间
#
INTERVAL_TIME_MIN       = 6
INTERVAL_TIME_MAX       = 60

#
# 评论上限间隔时间
#
TIME_COMMENT_HALT       = 600
#
# 每条消息间隔休眠时间
#
TIME_INTERVAL_MESSAGE   = 1

TIME_SLEEP_TIME         = 600

#
# 最大抢沙发等待时间
#
TIME_MAX_RUSH_WAIT      = 9
